<template>
  <div class="home-nav">
    <!-- logo -->
    <img src="@/assets/logo.png" style="height: 20px;">
    <!-- 搜索区域 -->
    <div class="search">
      <van-icon name="search" />
    </div>
    <!-- 分类 -->
    <van-icon name="wap-nav" />
  </div>
</template>
<script setup>
import { Icon as VanIcon } from 'vant'
</script>
<style lang='scss' scoped>
.home-nav{
  position: fixed;
  background-color: #FFF;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  margin-right: 10px;
  z-index: 1000;
  img {
    padding: 0 10px;
  }
  .search {
    width: 100%;
    background-color: #f7f7f7;
    margin-right: 5px;
    border-radius: 20px;
    padding-left: 8px;
    .van-icon {
      size: 20px;
      margin-top: 5px;
    }
  }
}
</style>